package com.yungu.swift.assets.passenger.service;

import com.yungu.swift.assets.passenger.model.dto.PassengerAddressDto;
import com.yungu.swift.assets.passenger.model.param.ApiPassengerAddressParam;
import com.yungu.swift.base.ResponseData;
import com.yungu.swift.base.service.BaseService;

import java.util.List;

/**
 * Copyright © 厦门云谷互联信息有限公司 2018-2020 All Right Reserved
 * <p>
 * 乘客地址业务逻辑处理接口
 *
 * @author cuixiuyin - Generate
 * @version 1.1.1-SNAPSHOT
 * @since 2018-07-04 13:50
 */
public interface PassengerAddressService extends BaseService<PassengerAddressDto> {

    /**
     * 获取乘客地址列表
     *
     * @param token
     * @return
     */
    ResponseData<List<PassengerAddressDto>> addressList(String token);

    /**
     * 乘客设置常用地址
     *
     * @param addressParam 参数
     * @return AjaxList
     */
    ResponseData<PassengerAddressDto> addAddress(ApiPassengerAddressParam addressParam);

    /**
     * 乘客获取家/公司地址
     *
     * @param uuid 参数
     * @param type 参数
     * @return PassengerAddressDto
     */
    ResponseData<PassengerAddressDto> getAddressInfo(String uuid, Integer type);
}